Remove an item from a Tuple

L = list(T); L.remove(“c”); T = tuple(L)

Remove an item from a Tuple.
# create a tuple
T = "w", 3, "r", "s", "o", "u", "r", "c", "e"
print(T)                                       # ('w', 3, 'r', 's', 'o', 'u', 'r', 'c', 'e')

# tuples are IMMUTABLE, so you can not remove elements
# using merge of tuples with the + operator you can
# remove an item and it will create a new tuple
T = T[:2] + T[3:]
print(T)                                       # ('w', 3, 's', 'o', 'u', 'r', 'c', 'e')

# converting the tuple to list
L = list(T)

# use different ways to remove an item of the list
L.remove("c")

# converting the tuple to list
T = tuple(L)
print(T)                                       # ('w', 3, 's', 'o', 'u', 'r', 'e')